#ifndef _INCLUDE_OPENNETWORK_S_RELIABLE_MESSAGE_
#define _INCLUDE_OPENNETWORK_S_RELIABLE_MESSAGE_

/*!
    Copright: Kai "DrHalan" Mast - www.freakybytes.org

    This file is part of OpenNetwork. See OpenNetwork.h for license information.
*/

#include "include/OpenNetwork/types.h"
#include "extensions/BitStream/BitStream.h"
#include "include/OpenNetwork/SNetworkAddress.h"

namespace onet
{

    struct SReliableMessage
    {
        SReliableMessage(c8 c, u32 u, BitStream* d) : id(c), timeSend(u), data(d)
        {
        }

        //! PacketID and the time it was send
        c8 id;
        u32 timeSend;

        //! The actual message
        BitStream* data;
    };

} //!end namespace onet

#endif
